#ifndef _PLANE_H_INCLUDED_
#define _PLANE_H_INCLUDED_

#include "ps2vector4.h"

struct Plane {
public:
    float a, b, c, d;
    Plane(void);
    ~Plane(void);
    inline float Dot(const Vector4 & value);
    void Normalize();
};


float Plane::Dot(const Vector4 & value) {
    return ((((this->a * value.x) + (this->b * value.y)) + (this->c * value.z)) + (this->d * value.w));
}

#endif
